﻿@model IEnumerable<HanGu.Entity.VChangeChargeRecorde>
@{
    Layout = null;
    int i = 1;
    ViewBag.ViewTitle = "充值";
    var SearchParma = ViewData["SearchParma"] as HanGu.Entity.UniversallySearchParam;
}
<form id="pagerForm" method="get" action="/admin/@ViewData["CurrentController"]/index">
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
<input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
<input type="hidden" name="orderField" value="${param.orderField}" />
<input type="hidden" name="Title" value="@ViewData["Title"]" />
<input type="hidden" name="StarTime" value="@SearchParma.StarDateTime" />
<input type="hidden" name="EndTime" value="@SearchParma.EndDateTime" />
<input type="hidden" name="VIPID" value="@SearchParma.IntObj1" />
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="Form_@ViewData["CurrentController"]" action="/admin/@ViewData["CurrentController"]/index"
    method="post">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                @*<td>
                    关键字：
                </td>
                <td>
                    @Html.TextBox("Title", SearchParma.Ttile)
                </td>*@
                <td>
                    @Html.Label("操作时间：")
                </td>
                <td colspan="6">
                    <p>
                        @Html.TextBox("StarTime", SearchParma.StarDateTime, new { @class = "date", format = "yyyy-MM-dd HH:mm", @readonly = "true" })
                    </p>
                </td>
                <td>
                    ~
                </td>
                <td>
                    <p>
                        @Html.TextBox("EndTime", SearchParma.EndDateTime, new { @class = "date", format = "yyyy-MM-dd HH:mm", @readonly = "true" })
                    </p>
                </td>
                <td align="right">
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit" name="submit">
                                            检索</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="admin/@ViewData["CurrentController"]/Create/@SearchParma.IntObj1?action=add" target="navTab"  warn="请选择一个用户" rel="ChangeChargeRecordeAdd" title="添加-@ViewBag.ViewTitle">
                <span>添加</span></a></li>
            <li><a class="delete" href="admin/@ViewData["CurrentController"]/Delete/{@ViewData["CurrentController"]_id}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一个用户">
                <span>删除</span></a></li>
        </ul>
    </div>
    <table class="table" width="100%" layouth="110">
        <thead>
            <tr class="header">
                <th style="width: 150px">
                    序号
                </th>
                <th>
                    会员
                </th>
                <th>
                    原有积分
                </th>
                <th>
                    充值积分
                </th>
                <th>
                    操作人
                </th>
                <th>
                    操作时间
                </th>
            </tr>
        </thead>
        @foreach (var item in Model)
        {            
            <tr target="@ViewData["CurrentController"]_id" rel="@item.ID" >
                <td>
                    @i
                </td>
                <td>
                    @item.MemberName
                </td>
                <td>
                    @item.SourceValue
                </td>
                <td>
                    @item.ChangeValue
                </td>
                <td>
                    @item.Changer
                </td>
                <td>
                    <span formatdate="yyyy-MM-dd HH:mm">
                        @item.ChangeTime</span>
                </td>
            </tr>
            i += 1;
        }
    </table>
</div>
<div class="panelBar">
    <div class="pages">
        <span>共【@ViewData["RowCount"] 】条,每页显示【@ViewData["pageSize"] 】条</span>
    </div>
    <div class="pagination" targettype="navTab" totalcount="@ViewData["RowCount"] "
            numperpage="@ViewData["pageSize"] " pagenumshown="10" currentpage="@Request["pageNum"] ">
    </div>
</div>
